<%--
  Created by IntelliJ IDEA.
  User: cf
  Date: 2024/5/30
  Time: 21:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>我的订单</title>
    <link rel="stylesheet" type="text/css" href="./css/allorder.css">
</head>
<body>
<h1>所有订单</h1>
<table>
    <thead>
    <tr>
        <th>订单号</th>
        <th>用户</th>
        <th>总价</th>
        <th>下单时间</th>
        <th>详情</th>
    </tr>
    </thead>
    <tbody>
    <!-- 在这里添加订单数据 -->

        <c:forEach var="order" items="${orderslist}">
    <tr>
            <td>${order.ORDER_ID}</td>
            <td>${order.USER_ID}</td>
            <td>￥${order.ORDER_TOTAL_PRICE}</td>
            <td>${order.ORDER_TIME}</td>
            <td><a href="order_detail?oid=${order.ORDER_ID}">详情</a></td>
    </tr>
        </c:forEach>


    </tbody>

</table>
</body>
</html>

